package com.example.javafx.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin(origins = "*",maxAge = 3600)
@RestController("ajax")
@RequestMapping("/ajax")
public class AjaxController {
    @RequestMapping("/testAjax")
    public String testAjax(){
        return "hello ajax";
    }
}